package com.example.springcontainer.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @ClassName TestConfig
 * @Description
 * @Author Yin
 * @Date 2021/4/14 11:11
 * @Version 1.0
 */
@Configuration
public class TestConfig {
    String name;
    @Bean
    public String testString(TestConfigProperties testConfigProperties){
        name = testConfigProperties.userName;
        return name;
    }
}
